<!doctype html>
<html class="default no-js">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>UniformBufferObject | ts</title>
	<meta name="description" content="Documentation for ts">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../assets/css/main.css">
</head>
<body>
<header>
	<div class="tsd-page-toolbar">
		<div class="container">
			<div class="table-wrap">
				<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
					<div class="field">
						<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
						<input id="tsd-search-field" type="text" />
					</div>
					<ul class="results">
						<li class="state loading">Preparing search index...</li>
						<li class="state failure">The search index is not available</li>
					</ul>
					<a href="../index.html" class="title">ts</a>
				</div>
				<div class="table-cell" id="tsd-widgets">
					<div id="tsd-filter">
						<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
						<div class="tsd-filter-group">
							<div class="tsd-select" id="tsd-filter-visibility">
								<span class="tsd-select-label">All</span>
								<ul class="tsd-select-list">
									<li data-value="public">Public</li>
									<li data-value="protected">Public/Protected</li>
									<li data-value="private" class="selected">All</li>
								</ul>
							</div>
							<input type="checkbox" id="tsd-filter-inherited" checked />
							<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
							<input type="checkbox" id="tsd-filter-externals" checked />
							<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
							<input type="checkbox" id="tsd-filter-only-exported" />
							<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
						</div>
					</div>
					<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
				</div>
			</div>
		</div>
	</div>
	<div class="tsd-page-title">
		<div class="container">
			<ul class="tsd-breadcrumb">
				<li>
					<a href="../globals.html">Globals</a>
				</li>
				<li>
					<a href="../modules/_laya_renderengine_uniformbufferobject_.html">&quot;laya/RenderEngine/UniformBufferObject&quot;</a>
				</li>
				<li>
					<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html">UniformBufferObject</a>
				</li>
			</ul>
			<h1>Class UniformBufferObject</h1>
		</div>
	</div>
</header>
<div class="container container-main">
	<div class="row">
		<div class="col-8 col-content">
			<section class="tsd-panel tsd-comment">
				<div class="tsd-comment tsd-typography">
					<div class="lead">
						<p>类封装WebGL2UniformBufferObect</p>
					</div>
				</div>
			</section>
			<section class="tsd-panel tsd-hierarchy">
				<h3>Hierarchy</h3>
				<ul class="tsd-hierarchy">
					<li>
						<a href="_laya_renderengine_buffer_.buffer.html" class="tsd-signature-type">Buffer</a>
						<ul class="tsd-hierarchy">
							<li>
								<span class="target">UniformBufferObject</span>
								<ul class="tsd-hierarchy">
									<li>
										<a href="_laya_d3_renderobjs_nativeobj_nativeuniformbufferobject_.nativeuniformbufferobject.html" class="tsd-signature-type">NativeUniformBufferObject</a>
									</li>
								</ul>
							</li>
						</ul>
					</li>
				</ul>
			</section>
			<section class="tsd-panel-group tsd-index-group">
				<h2>Index</h2>
				<section class="tsd-panel tsd-index-panel">
					<div class="tsd-index-content">
						<section class="tsd-index-section ">
							<h3>Constructors</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#constructor" class="tsd-kind-icon">constructor</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Properties</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#_buffer" class="tsd-kind-icon">_buffer</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#_buffertype" class="tsd-kind-icon">_buffer<wbr>Type</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#_bufferusage" class="tsd-kind-icon">_buffer<wbr>Usage</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#_bytelength" class="tsd-kind-icon">_byte<wbr>Length</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#_glbuffer" class="tsd-kind-icon">_gl<wbr>Buffer</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#_glpointer" class="tsd-kind-icon">_gl<wbr>Pointer</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#_name" class="tsd-kind-icon">_name</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#bytelength" class="tsd-kind-icon">byte<wbr>Length</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#uboname_camera" class="tsd-kind-icon">UBONAME_<wbr>CAMERA</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#uboname_scene" class="tsd-kind-icon">UBONAME_<wbr>SCENE</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#uboname_shadow" class="tsd-kind-icon">UBONAME_<wbr>SHADOW</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#uboname_sprite3d" class="tsd-kind-icon">UBONAME_<wbr>SPRITE3D</a></li>
							</ul>
						</section>
						<section class="tsd-index-section tsd-is-inherited">
							<h3>Accessors</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#bufferusage" class="tsd-kind-icon">buffer<wbr>Usage</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Methods</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#_reset" class="tsd-kind-icon">_reset</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#bind" class="tsd-kind-icon">bind</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#resizelength" class="tsd-kind-icon">resizelength</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#setdata" class="tsd-kind-icon">set<wbr>Data</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#setdatabybyuniformbufferdataoffset" class="tsd-kind-icon">set<wbr>Data<wbr>ByBy<wbr>Uniform<wbr>Buffer<wbr>Data<wbr>Offset</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#setdatabyuniformbufferdata" class="tsd-kind-icon">set<wbr>Data<wbr>ByUniform<wbr>Buffer<wbr>Data</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#unbind" class="tsd-kind-icon">unbind</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#create" class="tsd-kind-icon">create</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#getbuffer" class="tsd-kind-icon">get<wbr>Buffer</a></li>
							</ul>
						</section>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Constructors</h2>
				<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite">
					<a name="constructor" class="tsd-anchor"></a>
					<h3>constructor</h3>
					<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite">
						<li class="tsd-signature tsd-kind-icon">new <wbr>Uniform<wbr>Buffer<wbr>Object<span class="tsd-signature-symbol">(</span>glPointer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, bufferUsage<span class="tsd-signature-symbol">: </span><a href="../enums/_laya_renderengine_renderenum_buffertargettype_.bufferusage.html" class="tsd-signature-type">BufferUsage</a>, byteLength<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, isSingle<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html" class="tsd-signature-type">UniformBufferObject</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Overrides <a href="_laya_renderengine_buffer_.buffer.html">Buffer</a>.<a href="_laya_renderengine_buffer_.buffer.html#constructor">constructor</a></p>
								<ul>
									<li>Defined in laya/RenderEngine/UniformBufferObject.ts:66</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>interanl</dt>
									<dd></dd>
								</dl>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>glPointer: <span class="tsd-signature-type">number</span></h5>
								</li>
								<li>
									<h5>name: <span class="tsd-signature-type">string</span></h5>
								</li>
								<li>
									<h5>bufferUsage: <a href="../enums/_laya_renderengine_renderenum_buffertargettype_.bufferusage.html" class="tsd-signature-type">BufferUsage</a></h5>
								</li>
								<li>
									<h5>byteLength: <span class="tsd-signature-type">number</span></h5>
								</li>
								<li>
									<h5>isSingle: <span class="tsd-signature-type">boolean</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html" class="tsd-signature-type">UniformBufferObject</a></h4>
						</li>
					</ul>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Properties</h2>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
					<a name="_buffer" class="tsd-anchor"></a>
					<h3>_buffer</h3>
					<div class="tsd-signature tsd-kind-icon">_buffer<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Float32Array</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Uint16Array</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Uint8Array</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Uint32Array</span></div>
					<aside class="tsd-sources">
						<p>Inherited from <a href="_laya_renderengine_buffer_.buffer.html">Buffer</a>.<a href="_laya_renderengine_buffer_.buffer.html#_buffer">_buffer</a></p>
						<ul>
							<li>Defined in laya/RenderEngine/Buffer.ts:8</li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
					<a name="_buffertype" class="tsd-anchor"></a>
					<h3>_buffer<wbr>Type</h3>
					<div class="tsd-signature tsd-kind-icon">_buffer<wbr>Type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
					<aside class="tsd-sources">
						<p>Inherited from <a href="_laya_renderengine_buffer_.buffer.html">Buffer</a>.<a href="_laya_renderengine_buffer_.buffer.html#_buffertype">_bufferType</a></p>
						<ul>
							<li>Defined in laya/RenderEngine/Buffer.ts:10</li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
					<a name="_bufferusage" class="tsd-anchor"></a>
					<h3>_buffer<wbr>Usage</h3>
					<div class="tsd-signature tsd-kind-icon">_buffer<wbr>Usage<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
					<aside class="tsd-sources">
						<p>Inherited from <a href="_laya_renderengine_buffer_.buffer.html">Buffer</a>.<a href="_laya_renderengine_buffer_.buffer.html#_bufferusage">_bufferUsage</a></p>
						<ul>
							<li>Defined in laya/RenderEngine/Buffer.ts:11</li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
					<a name="_bytelength" class="tsd-anchor"></a>
					<h3>_byte<wbr>Length</h3>
					<div class="tsd-signature tsd-kind-icon">_byte<wbr>Length<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div>
					<aside class="tsd-sources">
						<p>Inherited from <a href="_laya_renderengine_buffer_.buffer.html">Buffer</a>.<a href="_laya_renderengine_buffer_.buffer.html#_bytelength">_byteLength</a></p>
						<ul>
							<li>Defined in laya/RenderEngine/Buffer.ts:13</li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
					<a name="_glbuffer" class="tsd-anchor"></a>
					<h3>_gl<wbr>Buffer</h3>
					<div class="tsd-signature tsd-kind-icon">_gl<wbr>Buffer<span class="tsd-signature-symbol">:</span> <a href="../interfaces/_laya_renderengine_renderinterface_irenderbuffer_.irenderbuffer.html" class="tsd-signature-type">IRenderBuffer</a></div>
					<aside class="tsd-sources">
						<p>Inherited from <a href="_laya_renderengine_buffer_.buffer.html">Buffer</a>.<a href="_laya_renderengine_buffer_.buffer.html#_glbuffer">_glBuffer</a></p>
						<ul>
							<li>Defined in laya/RenderEngine/Buffer.ts:7</li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="_glpointer" class="tsd-anchor"></a>
					<h3>_gl<wbr>Pointer</h3>
					<div class="tsd-signature tsd-kind-icon">_gl<wbr>Pointer<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in laya/RenderEngine/UniformBufferObject.ts:54</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<dl class="tsd-comment-tags">
							<dt>interanl</dt>
							<dd></dd>
						</dl>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="_name" class="tsd-anchor"></a>
					<h3>_name</h3>
					<div class="tsd-signature tsd-kind-icon">_name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in laya/RenderEngine/UniformBufferObject.ts:63</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>buffer name</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="bytelength" class="tsd-anchor"></a>
					<h3>byte<wbr>Length</h3>
					<div class="tsd-signature tsd-kind-icon">byte<wbr>Length<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in laya/RenderEngine/UniformBufferObject.ts:66</li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>all byte length</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="uboname_camera" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> UBONAME_<wbr>CAMERA</h3>
					<div class="tsd-signature tsd-kind-icon">UBONAME_<wbr>CAMERA<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &quot;CameraUniformBlock&quot;</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in laya/RenderEngine/UniformBufferObject.ts:12</li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="uboname_scene" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> UBONAME_<wbr>SCENE</h3>
					<div class="tsd-signature tsd-kind-icon">UBONAME_<wbr>SCENE<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &quot;SceneUniformBlock&quot;</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in laya/RenderEngine/UniformBufferObject.ts:11</li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="uboname_shadow" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> UBONAME_<wbr>SHADOW</h3>
					<div class="tsd-signature tsd-kind-icon">UBONAME_<wbr>SHADOW<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &quot;ShadowUniformBlock&quot;</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in laya/RenderEngine/UniformBufferObject.ts:14</li>
						</ul>
					</aside>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-static">
					<a name="uboname_sprite3d" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> UBONAME_<wbr>SPRITE3D</h3>
					<div class="tsd-signature tsd-kind-icon">UBONAME_<wbr>SPRITE3D<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &quot;SpriteUniformBlock&quot;</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in laya/RenderEngine/UniformBufferObject.ts:13</li>
						</ul>
					</aside>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group tsd-is-inherited">
				<h2>Accessors</h2>
				<section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
					<a name="bufferusage" class="tsd-anchor"></a>
					<h3>buffer<wbr>Usage</h3>
					<ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
						<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> bufferUsage<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from <a href="_laya_renderengine_buffer_.buffer.html">Buffer</a>.<a href="_laya_renderengine_buffer_.buffer.html#bufferusage">bufferUsage</a></p>
								<ul>
									<li>Defined in laya/RenderEngine/Buffer.ts:15</li>
								</ul>
							</aside>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
						</li>
					</ul>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Methods</h2>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="_reset" class="tsd-anchor"></a>
					<h3>_reset</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">_reset<span class="tsd-signature-symbol">(</span>bytelength<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/RenderEngine/UniformBufferObject.ts:109</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>重置buffer长度</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>bytelength: <span class="tsd-signature-type">number</span></h5>
									<div class="tsd-comment tsd-typography">
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
					<a name="bind" class="tsd-anchor"></a>
					<h3>bind</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
						<li class="tsd-signature tsd-kind-icon">bind<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Overrides Buffer.bind</p>
								<ul>
									<li>Defined in laya/RenderEngine/UniformBufferObject.ts:128</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<dl class="tsd-comment-tags">
									<dt>inheritdoc</dt>
									<dd></dd>
									<dt>override</dt>
									<dd></dd>
								</dl>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
					<a name="resizelength" class="tsd-anchor"></a>
					<h3>resizelength</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
						<li class="tsd-signature tsd-kind-icon">resizelength<span class="tsd-signature-symbol">(</span>bytelength<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from <a href="_laya_renderengine_buffer_.buffer.html">Buffer</a>.<a href="_laya_renderengine_buffer_.buffer.html#resizelength">resizelength</a></p>
								<ul>
									<li>Defined in laya/RenderEngine/Buffer.ts:39</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>reset byteLength</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>bytelength: <span class="tsd-signature-type">number</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="setdata" class="tsd-anchor"></a>
					<h3>set<wbr>Data</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">set<wbr>Data<span class="tsd-signature-symbol">(</span>buffer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Float32Array</span>, bufferOffset<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, byteCount<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/RenderEngine/UniformBufferObject.ts:139</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>set UniformBuffer data by UniformBufferData</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>buffer: <span class="tsd-signature-type">Float32Array</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>Float32Array data</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagDefault value">Default value</span> bufferOffset: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>byteOffset</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagDefault value">Default value</span> byteCount: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = Number.MAX_SAFE_INTEGER</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>byteCount</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="setdatabybyuniformbufferdataoffset" class="tsd-anchor"></a>
					<h3>set<wbr>Data<wbr>ByBy<wbr>Uniform<wbr>Buffer<wbr>Data<wbr>Offset</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">set<wbr>Data<wbr>ByBy<wbr>Uniform<wbr>Buffer<wbr>Data<wbr>Offset<span class="tsd-signature-symbol">(</span>bufferData<span class="tsd-signature-symbol">: </span><a href="_laya_renderengine_subuniformbufferdata_.subuniformbufferdata.html" class="tsd-signature-type">SubUniformBufferData</a>, offset<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/RenderEngine/UniformBufferObject.ts:175</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>set Data by subUniformBufferData</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>bufferData: <a href="_laya_renderengine_subuniformbufferdata_.subuniformbufferdata.html" class="tsd-signature-type">SubUniformBufferData</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>sub UniformBufferData</p>
									</div>
								</li>
								<li>
									<h5>offset: <span class="tsd-signature-type">number</span></h5>
									<div class="tsd-comment tsd-typography">
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="setdatabyuniformbufferdata" class="tsd-anchor"></a>
					<h3>set<wbr>Data<wbr>ByUniform<wbr>Buffer<wbr>Data</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">set<wbr>Data<wbr>ByUniform<wbr>Buffer<wbr>Data<span class="tsd-signature-symbol">(</span>bufferData<span class="tsd-signature-symbol">: </span><a href="_laya_renderengine_uniformbufferdata_.unifrombufferdata.html" class="tsd-signature-type">UnifromBufferData</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/RenderEngine/UniformBufferObject.ts:159</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>set UniformBuffer data by UniformBufferData</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>bufferData: <a href="_laya_renderengine_uniformbufferdata_.unifrombufferdata.html" class="tsd-signature-type">UnifromBufferData</a></h5>
									<div class="tsd-comment tsd-typography">
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
					<a name="unbind" class="tsd-anchor"></a>
					<h3>unbind</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
						<li class="tsd-signature tsd-kind-icon">unbind<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<p>Inherited from <a href="_laya_renderengine_buffer_.buffer.html">Buffer</a>.<a href="_laya_renderengine_buffer_.buffer.html#unbind">unbind</a></p>
								<ul>
									<li>Defined in laya/RenderEngine/Buffer.ts:32</li>
								</ul>
							</aside>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="create" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> create</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">create<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, bufferUsage<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, bytelength<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, isSingle<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html" class="tsd-signature-type">UniformBufferObject</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/RenderEngine/UniformBufferObject.ts:27</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>create Uniform Buffer Base</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>name: <span class="tsd-signature-type">string</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>Uniform block name(must pitch Shader)</p>
									</div>
								</li>
								<li>
									<h5>bufferUsage: <span class="tsd-signature-type">number</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>config usage</p>
									</div>
								</li>
								<li>
									<h5>bytelength: <span class="tsd-signature-type">number</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>byte length</p>
									</div>
								</li>
								<li>
									<h5><span class="tsd-flag ts-flagDefault value">Default value</span> isSingle: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html" class="tsd-signature-type">UniformBufferObject</a></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static">
					<a name="getbuffer" class="tsd-anchor"></a>
					<h3><span class="tsd-flag ts-flagStatic">Static</span> get<wbr>Buffer</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static">
						<li class="tsd-signature tsd-kind-icon">get<wbr>Buffer<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, index<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html" class="tsd-signature-type">UniformBufferObject</a></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in laya/RenderEngine/UniformBufferObject.ts:46</li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>get Uniform Buffer by name</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>name: <span class="tsd-signature-type">string</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>Uniform block name(must pitch Shader)</p>
									</div>
								</li>
								<li>
									<h5>index: <span class="tsd-signature-type">number</span></h5>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html" class="tsd-signature-type">UniformBufferObject</a></h4>
						</li>
					</ul>
				</section>
			</section>
		</div>
		<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
			<nav class="tsd-navigation primary">
				<ul>
					<li class="globals  ">
						<a href="../globals.html"><em>Globals</em></a>
					</li>
					<li class="current tsd-kind-module">
						<a href="../modules/_laya_renderengine_uniformbufferobject_.html">&quot;laya/<wbr>Render<wbr>Engine/<wbr>Uniform<wbr>Buffer<wbr>Object&quot;</a>
					</li>
				</ul>
			</nav>
			<nav class="tsd-navigation secondary menu-sticky">
				<ul class="before-current">
				</ul>
				<ul class="current">
					<li class="current tsd-kind-class tsd-parent-kind-module">
						<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html" class="tsd-kind-icon">Uniform<wbr>Buffer<wbr>Object</a>
						<ul>
							<li class=" tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#constructor" class="tsd-kind-icon">constructor</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#_buffer" class="tsd-kind-icon">_buffer</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#_buffertype" class="tsd-kind-icon">_buffer<wbr>Type</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#_bufferusage" class="tsd-kind-icon">_buffer<wbr>Usage</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#_bytelength" class="tsd-kind-icon">_byte<wbr>Length</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#_glbuffer" class="tsd-kind-icon">_gl<wbr>Buffer</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#_glpointer" class="tsd-kind-icon">_gl<wbr>Pointer</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#_name" class="tsd-kind-icon">_name</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#bytelength" class="tsd-kind-icon">byte<wbr>Length</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#uboname_camera" class="tsd-kind-icon">UBONAME_<wbr>CAMERA</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#uboname_scene" class="tsd-kind-icon">UBONAME_<wbr>SCENE</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#uboname_shadow" class="tsd-kind-icon">UBONAME_<wbr>SHADOW</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-static">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#uboname_sprite3d" class="tsd-kind-icon">UBONAME_<wbr>SPRITE3D</a>
							</li>
							<li class=" tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#bufferusage" class="tsd-kind-icon">buffer<wbr>Usage</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#_reset" class="tsd-kind-icon">_reset</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-overwrite">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#bind" class="tsd-kind-icon">bind</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#resizelength" class="tsd-kind-icon">resizelength</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#setdata" class="tsd-kind-icon">set<wbr>Data</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#setdatabybyuniformbufferdataoffset" class="tsd-kind-icon">set<wbr>Data<wbr>ByBy<wbr>Uniform<wbr>Buffer<wbr>Data<wbr>Offset</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#setdatabyuniformbufferdata" class="tsd-kind-icon">set<wbr>Data<wbr>ByUniform<wbr>Buffer<wbr>Data</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#unbind" class="tsd-kind-icon">unbind</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#create" class="tsd-kind-icon">create</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-static">
								<a href="_laya_renderengine_uniformbufferobject_.uniformbufferobject.html#getbuffer" class="tsd-kind-icon">get<wbr>Buffer</a>
							</li>
						</ul>
					</li>
				</ul>
				<ul class="after-current">
				</ul>
			</nav>
		</div>
	</div>
</div>
<footer>
	<div class="container">
		<h2>Legend</h2>
		<div class="tsd-legend-group">
			<ul class="tsd-legend">
				<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
				<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
				<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
				<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
				<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
				<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
				<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
			</ul>
		</div>
	</div>
</footer>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
</body>
</html>